package com.topscomm.appv2.util;

import java.util.Map;

/**
 * @author: yanshunkuan
 * @date: 2023-09-08
 * @descripyion:
 * @modify:
 */
public class CommonUtil {

    // 判断是否有key值以及value是否为空
    public static String getTrimString(Map<String, Object> map, String key) {
        String value = "";
        if (map.get(key) == null || map.get(key).toString().equals("")) {
            value = "";
        }
        else {
            value = map.get(key).toString().trim();
        }
        return value;
    }

}
